package com.ruoyi.ship.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ship.mapper.TqwlShipLogMapper;
import com.ruoyi.ship.domain.TqwlShipLog;
import com.ruoyi.ship.service.ITqwlShipLogService;

/**
 * 查询日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-05
 */
@Service
public class TqwlShipLogServiceImpl implements ITqwlShipLogService 
{
    @Autowired
    private TqwlShipLogMapper tqwlShipLogMapper;

    /**
     * 查询查询日志
     * 
     * @param shipLogId 查询日志主键
     * @return 查询日志
     */
    @Override
    public TqwlShipLog selectTqwlShipLogByShipLogId(Long shipLogId)
    {
        return tqwlShipLogMapper.selectTqwlShipLogByShipLogId(shipLogId);
    }

    /**
     * 查询查询日志列表
     * 
     * @param tqwlShipLog 查询日志
     * @return 查询日志
     */
    @Override
    public List<TqwlShipLog> selectTqwlShipLogList(TqwlShipLog tqwlShipLog)
    {
        return tqwlShipLogMapper.selectTqwlShipLogList(tqwlShipLog);
    }

    /**
     * 新增查询日志
     * 
     * @param tqwlShipLog 查询日志
     * @return 结果
     */
    @Override
    public int insertTqwlShipLog(TqwlShipLog tqwlShipLog)
    {
        return tqwlShipLogMapper.insertTqwlShipLog(tqwlShipLog);
    }

    /**
     * 修改查询日志
     * 
     * @param tqwlShipLog 查询日志
     * @return 结果
     */
    @Override
    public int updateTqwlShipLog(TqwlShipLog tqwlShipLog)
    {
        tqwlShipLog.setUpdateTime(DateUtils.getNowDate());
        return tqwlShipLogMapper.updateTqwlShipLog(tqwlShipLog);
    }

    /**
     * 批量删除查询日志
     * 
     * @param shipLogIds 需要删除的查询日志主键
     * @return 结果
     */
    @Override
    public int deleteTqwlShipLogByShipLogIds(Long[] shipLogIds)
    {
        return tqwlShipLogMapper.deleteTqwlShipLogByShipLogIds(shipLogIds);
    }

    /**
     * 删除查询日志信息
     * 
     * @param shipLogId 查询日志主键
     * @return 结果
     */
    @Override
    public int deleteTqwlShipLogByShipLogId(Long shipLogId)
    {
        return tqwlShipLogMapper.deleteTqwlShipLogByShipLogId(shipLogId);
    }
}
